﻿@model zichan.Models.PutAndScrapModel
@{
    Layout = "";
    ViewBag.Title = "Scrap";
    int close = 0;
    if (ViewBag.layerClose != null)
    { close = ViewBag.layerClose; }
}
@*@section Pagetitle{
    @AdminCommon.PageTitle("报废", "")
}*@
<link href="~/assets/global/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<script src="~/Scripts/jquery-2.1.4.min.js"></script>
<div class="page-content">
    <div class="row">
        <div class="col-md-12">
            <div class="modal-body" id="scrap_Modal">
                <div class="portlet-body form">
                    <!-- BEGIN FORM-->
                    @*<form action="#" class="form-horizontal">*@
                    @using (Html.BeginForm("Scrap", "RepertoryManage", FormMethod.Post, new { @id = "form1", @name = "form1", @class = "form-horizontal" }))
                    {
                        <div class="form-body">
                           @Html.HiddenFor(o=>o.AssetId)
                            <div class="form-group ">
                                <label class="col-md-3 control-label">报废原因或备注:</label>
                                <div class="col-md-9">
                                    @Html.TextAreaFor(o => o.Remark, new { @class = "form-control input-large" })
                                </div>
                            </div>
                        </div>
                        <div class="form-actions">
                            <div class="row">
                                <div class="col-md-offset-5_o col-md-9">
                                    <button type="submit" name="crtbtn" class="btn btn-default blue">确定</button>

                                </div>
                            </div>
                        </div>
                    }
                    @*</form>*@
                    <!-- END FORM-->
                </div>
            </div>
        </div>
    </div>
</div>
<script>
    $(function () {
        if(@close>0)
        {
            top.location.reload();
        }
    })
</script>